package com.megalith.entities;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * @Description 订单实体类
 * @Author lfp
 * @Date 2021/4/8 23:02
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@ApiModel(value = "Order", description = "订单实体类")
public class Order {
    //订单编号
    @ApiModelProperty(value = "订单编号")
    private Long orderId;

    //用户编号
    @ApiModelProperty(value = "用户编号")
    private String userId;

    //价格
    @ApiModelProperty(value = "价格")
    private BigDecimal privice;

    //订单状态 0：未支付（待支付），1：已支付，-1：已取消
    @ApiModelProperty(value = "订单状态 0：未支付（待支付），1：已支付，-1：已取消")
    private Integer status;

    //备注
    @ApiModelProperty(value = "备注")
    private String remark;
}